package com.rural.bus.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.rural.bus.R;
import com.rural.bus.adapter.base.MyBaseAdapter;
import com.rural.bus.adapter.base.ViewHolder;
import com.rural.bus.model.Order;

public class SelectCarAdapter extends MyBaseAdapter<Order> {

	public SelectCarAdapter(Context context, List<Order> list) {
		super(context, list);
	}

	@Override
	public View getView(int arg0, View convertView, ViewGroup arg2) {
		if(convertView==null){
			convertView=mInflater.inflate(R.layout.item_selectcar, null);
		}
		TextView tvCarType=ViewHolder.get(convertView, R.id.tv_car_type);
		TextView tvName=ViewHolder.get(convertView, R.id.tv_name);
		TextView tvFund=ViewHolder.get(convertView, R.id.tv_fund);
		final Order order=list.get(arg0);
//		tvCarType.setText(order.carType);
		tvName.setText(order.driverName);

		return convertView;
	}


}
